//
//  SettingItem.h
//  zoneSun
//
//  Created by zy-gyl on 16/7/19.
//  Copyright © 2016年 Zeaple. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef void (^SwitchSettingBlock)(BOOL isOn);
typedef void (^SettingItemOption)();
@interface SettingItem : NSObject
//图标
@property (nonatomic, copy) NSString *icon;
//标题
@property (nonatomic, copy) NSString *title;

//点击那个cell需要做一些事情：比如弹出AlertView, 将代码写在block块里面;
@property (nonatomic, copy) SettingItemOption option;

//switch开关状态对应的操作代码写在block块里面
@property(nonatomic,copy)SwitchSettingBlock block;

//如果需要模态弹出控制器设置这个属性为YES;同时控制器需要继承PresentDismissViewctrl添加返回按钮
@property (nonatomic,assign)BOOL presentVC;



+ (instancetype)settingItemWithIcon:(NSString *)icon title:(NSString *)title;
+ (instancetype)settingItemWithTitle:(NSString *)title;

@end
